# selection
def selection_sort(lst):
    """选择排序"""
    for i in range(len(lst)):
        for j in range(i+1,len(lst)):
            if lst[j] < lst[i]:
                lst[i], lst[j]= lst[j], lst[i]

    return lst

l = [90, 89, 91, 22, 39, 100, 6]
print(selection_sort(l))

